﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace TyMES.Model.BaseInformation
{
    [Table("T_DqOrder")]
    public class DqOrder: BasePoco
    {
        [Display(Name = "工厂编号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string factoryCode { get; set; }
        [Display(Name = "产线编号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string lineCode { get; set; }
        [Display(Name = "产线名称")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string lineName { get; set; }
        [Display(Name = "主排程号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string scheduleNumber {  get; set; }
        [Display(Name = "计划开始时间")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public DateTime startTime { get; set; }
        [Display(Name = "计划结束时间")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public DateTime endTime { get; set; }
        [Display(Name = "工单编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string orderCode { get; set; }
        [Display(Name = "工单数量")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string orderQty { get; set; }
        [Display(Name = "工单类型")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string orderType { get; set; }
        [Display(Name = "工单状态")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string orderStatus { get; set; }
        [Display(Name = "工单状态编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string orderStateCode { get; set; }
        [Display(Name = "工单开始时间")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public DateTime orderStartTime { get; set; }
        [Display(Name = "工单结束时间时间")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public DateTime orderEndTime { get; set; }
        [Display(Name = "排程编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string scheduleCode { get; set; }
        [Display(Name = "排程数量")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string scheduleQty { get; set; }
        [Display(Name = "排程状态")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string scheduleStatus { get; set; }
        [Display(Name = "排程状态编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string scheduleStateCode { get; set; }
        [Display(Name = "排程开始时间")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public DateTime scheduleStartTime { get; set; }
        [Display(Name = "排程结束时间")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public DateTime scheduleEndTime { get; set; }
        [Display(Name = "产品编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string productCode { get; set; }
        [Display(Name = "产品名称")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string productName { get; set; }
        [Display(Name = "产品版本")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string productVersion { get; set; }
        [Display(Name = "物料编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string materialCode { get; set; }
        [Display(Name = "物料名称")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string materialName { get; set; }
        [Display(Name = "物料版本")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string materialVersion { get; set; }
        [Display(Name = "工艺编号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string routeCode { get; set; }
        [Display(Name = "工艺名称")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string routeName { get; set; }
        [Display(Name = "工艺路线版本")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string routeVersion { get; set; }
        [Display(Name = "priority")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public int priority { get; set; }
    }
}
